﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _3.InsertNumberOfLine
{
    class InsertNumberOfLine
    {
        static void Main(string[] args)
        {
            StreamWriter writer = new StreamWriter("..\\..\\Alabala.txt");
            
            using (writer)
            {

                StreamReader reader = new StreamReader(@"..\..\InsertNumberOfLine.cs");
                using (reader)
                {
                    int linenumber = 0;
                    string line = reader.ReadLine();
                    while (line != null)
                    {
                        linenumber++;
                        writer.WriteLine("Line {0} : {1}", linenumber, line);
                        line = reader.ReadLine();
                    }
                }
                Console.WriteLine("READY!");
            }
        }
    }
}
